const Axios = require('axios')

var Http = Axios.create({
  baseURL: ''
})

Http.interceptors.request.use(function (config) {
  return config
}, function (error) {
  return Promise.reject(error)
})
Http.interceptors.response.use(function (response) {
  return response.data
}, function (error) {
  return Promise.reject(error)
})

export default Http
